package com.shixun.dds_11.service;

import com.shixun.dds_11.dto.JbuyDTO;
import com.shixun.dds_11.dto.OrderPageQueryDTO;
import com.shixun.dds_11.dto.OrderSubmitDTO;
import com.shixun.dds_11.dto.OrdersInfoDTO;
import com.shixun.dds_11.entity.DdsOrder;
import com.baomidou.mybatisplus.extension.service.IService;
import com.shixun.dds_11.result.PageResult;
import com.shixun.dds_11.result.Result;
import com.shixun.dds_11.vo.OrdersInfoVO;
import io.swagger.models.auth.In;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author YSP
 * @since 2024-07-05
 */
public interface IDdsOrderService extends IService<DdsOrder> {

    int insert(JbuyDTO jbuyDTO);

    PageResult pageQuery(OrderPageQueryDTO orderPageQueryDTO);

    List<OrdersInfoVO> select(OrdersInfoDTO ordersInfoDTO);

    void submit(Integer id);

    void updateStatus(String status, Integer id);

    DdsOrder getByUserId(Integer userId);

    PageResult detail(Integer id);

    PageResult getList(Integer page);
}
